import { createRouter, createWebHistory } from 'vue-router'

import login from '@/views/login/index.vue';
import home from '@/views/home/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/login', component: login, },
    { path: '/home', component: home, },

  ],
})

export default router
